import App from './App'

// pina
import pinia from "@/stores"

// 方法的快捷调用
import $js from './common/js/js.js'

// uView
import uviewPlus from 'uview-plus'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	app.use(uviewPlus)
	app.use(pinia)
	app.config.globalProperties.$js = $js
	uni.$u.config.unit = 'rpx'
	return {
		app
	}
}
// #endif